package com.larry.design.structural.flyweight;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author larry
 * @Title: design-frame
 * @Package com.larry.design.structural.flyweight
 * @Description: TODO
 * @date 9/2/2110:40 AM
 */

@AllArgsConstructor
@Data
public class Beautiful extends AbstractFlyweight {

    String id;
    String name;
    int age;

    boolean canser = true;

    void service() {
        System.out.println("service");
        this.canser = false;
    }

    void end() {
        System.out.println("end");
    }
}
